package com.gupaoedu.task.factory.simplefactory;

import com.gupaoedu.task.factory.HaierTV;
import com.gupaoedu.task.factory.HisenseTV;
import com.gupaoedu.task.factory.IBrand;

/**
 * @author djl
 * @Title: SimpleFactoryTest
 * @Description: TODO
 * @date 2019/3/28
 */
public class SimpleFactoryTest {
    public static void main(String[] args) {
        BrandFactory factory=new BrandFactory();
        IBrand brand=factory.create(HisenseTV.class);
        brand.tv();
        brand=factory.create(HaierTV.class);
        brand.tv();
    }
}
